#![allow(unused)]
use convert_case::{Case, Casing};

fn main() {
    to_case()
}

fn to_case() {
    assert_eq!("Ronnie James Dio", "ronnie james dio".to_case(Case::Title));
    assert_eq!("ronnieJamesDio", "Ronnie_james_dio".to_case(Case::Camel));
    assert_eq!("ronnieJamesDio", "Ronnie-james-dio".to_case(Case::Camel));
    assert_eq!("Ronnie-James-Dio", "RONNIE_JAMES_DIO".to_case(Case::Train));

    assert_eq!("my-variable-name", "My variable NAME".to_case(Case::Kebab));
    assert_eq!("my-variable-name", "MyVariableName".to_case(Case::Kebab));

    assert_eq!("my_variable_name", "MyVariableName".to_case(Case::Snake));
    assert_eq!("my_variable_name", "my-variable-name".to_case(Case::Snake));

    assert_eq!("My Variable Name", "my_variable_name".to_case(Case::Title));
    assert_eq!("Myvariablename", "myvariablename".to_case(Case::Title));
}

